#pragma once

#include <windows.h>
#include <string>
#include "Network/Network.h"
#include "LoginManager.h"

class LoginDlg
{
public:
	LoginDlg();
	~LoginDlg();

	INT_PTR CALLBACK LoginDialogProc(
		HWND hwndDlg,
		UINT uMsg,
		WPARAM wParam,
		LPARAM lParam
		);
	void showDlg();

private:
	void init();
	void login(const char* = "default user name", const char* = "127.0.0.1", int = 8888);
	
	HWND mhWnd;
	HWND mhName;
	HWND mhIP;
	HWND mhPort;
};